<style>
    .control-label {
        text-align: right;
    }
</style>
<form id="config-form" class="form-horizontal" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('选择礼卡')}:</label>
        <div class="col-xs-5">
            {:build_select('row[card_id]', $cardList, $Request.get.card_id, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('生成数量')}:</label>
        <div class="col-xs-5">
            <input id="c-total_count" class="form-control" type="number" name="row[total_count]" value="100" title="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('卡号前缀')}:</label>
        <div class="col-xs-5">
            <input id="c-number_prefix" class="form-control" type="text" name="row[number_prefix]" title="" placeholder="比如：6000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('卡号格式')}:</label>
        <div class="col-xs-5">
            <select id="c-number_format" class="form-control" name="row[number_format]" title="">
                <option value="only_number">纯数字</option>
                <option value="number_string_A">数字 + 字母(大写)</option>
                <option value="number_string_a">数字 + 字母(小写)</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('卡号长度')}:</label>
        <div class="col-xs-5">
            <input id="c-number_length" class="form-control" type="number" name="row[number_length]" value="8" title="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('卡密格式')}:</label>
        <div class="col-xs-5">
            <select id="c-password_format" class="form-control" name="row[password_format]" title="">
                <option value="empty">不生成</option>
                <option value="only_number">纯数字</option>
                <option value="number_string_A">数字 + 字母(大写)</option>
                <option value="number_string_a">数字 + 字母(小写)</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('卡密长度')}:</label>
        <div class="col-xs-5">
            <input id="c-password_length" class="form-control" type="number" name="row[password_length]" value="8" title="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('统一密码')}:</label>
        <div class="col-xs-5">
            <input id="c-password" class="form-control" type="text" name="row[password]" placeholder="按需输入" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('备注')}:</label>
        <div class="col-xs-5">
            <input id="c-note" class="form-control" type="text" name="row[note]" title="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-4"></label>
        <div class="col-xs-5">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>
